<template>
  <div>测试</div>
  {{ conf }}
</template>
<script>
import { cfg } from "@/cfg/cfg.js";
import { getrole, get_guild_cdb } from "@/cfg/function.js";

export default {
  props: {
    conf: {
      type: Object,
      required: true,
    },
  },
  setup(props) {
    const set = {};
    const val = reactive({});
    const conf = props.conf;
    onMounted(async () => {
      try {
        await getrole();
        await get_guild_cdb(conf.guild_id);
      } catch (error) {
        alert(error);
      }
    });
    return { cfg, conf };
  },
};
</script>
